package com.zblwyj.service;


import com.zblwyj.bean.User;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

//@Service
//public class UserServer {
//
//    @RabbitListener(queues = "atguigu.news")
//    public void getNews(User user) {
//        System.out.println("接收到消息："+user);
//    }
//}
